-- GENERATED SPELL FOR [Bluegill Warrior] --


function spell0_1027(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_1027', 612, 1)
end

function spell1_1027(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1027', 10338, 1)
end

function Sorts_1027(pUnit, Event)
local choix_sorts_1027 = math.random(0, 1)
if choix_sorts_1027 == 0 then
pUnit:RegisterEvent('spell0_1027', 1, 1)
end
if choix_sorts_1027 == 1 then
pUnit:RegisterEvent('spell1_1027', 1, 1)
end
end

function mob1027_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1027', math.random(1500, 3000), 1)
end

function mob1027_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1027_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1027_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1027, 1, 'mob1027_Action')
RegisterUnitEvent(1027, 2, 'mob1027_Leave')
RegisterUnitEvent(1027, 3, 'mob1027_Kill')
RegisterUnitEvent(1027, 4, 'mob1027_Die')
